package com.hhs.storage.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author hhs
 * @since 2023-04-13
 */
@Data
public class Notice implements Serializable {

    private static final long serialVersionUID = 1L;

      private String id;

      /**
     * 标题
     */
      private String title;

      /**
     * 内容
     */
      private String content;

      /**
     * 创建者
     */
      private String creator;
      @TableField(exist = false)
      private BaseUser user;

      /**
     * 所属部门id
     */
      private String departId;
        @TableField(exist = false)
      private BaseDepartment department;
      /**
     * 创建时间
     */
      @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
      @JSONField(format="yyyy-MM-dd HH:mm:ss")
      private LocalDateTime createTime;

      private String articleId;


}
